
import {
  defineStore
} from 'pinia'


export const useParamStore = defineStore('param', () => {
  let choiceStaff = null
  
   let choiceHospital = null

  function setChoiceStaff(staff) {
    choiceStaff = staff
  }

  function getChoiceStaff() {
    return choiceStaff
  }
  
  function setChoiceHospital(hospital) {
    choiceHospital = hospital
    // console.log(staff);
  }
  
  function getChoiceHospital() {
    return choiceHospital
  }
  return {
    setChoiceStaff,
    getChoiceStaff,
    setChoiceHospital,
    getChoiceHospital
  };
})